#include <pthread.h>
#include <string>
#include <queue>

class MulticastSend;


struct Cmd
{
	std::string cmd;
};

class TimeService
{
	public:
	TimeService()
	{
		m_stop = true;
	}

	void client();
	void master(std::string const& localIP = "");
	void sendCommand(struct Cmd const& command);
	void stop()
	{
		m_stop = false;
	}
		bool m_stop;
		std::string m_localIP;
		std::queue<Cmd> m_cmd;
	private:
		  pthread_t masterProcess;
		  pthread_t clientProcess;


};
